
/*
 * Copyright (C) 2008-2009 Archie L. Cobbs. All rights reserved.
 *
 * $Id: SidekarNamespaceHandler.java 335 2010-02-16 17:32:13Z archie.cobbs $
 */

package org.dellroad.sidekar.spring;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

/**
 * Spring {@link org.springframework.beans.factory.xml.NamespaceHandler NamespaceHandler}
 * for the <code>sidekar</code> XML namespace.
 *
 * <p>
 * This adds support for the <code>&lt;sidekar:schema base-package="..."/&gt;</code> XML tag,
 * which defines a {@link SchemaModelFactoryBean} configured with the given Java package name(s).
 * </p>
 */
public class SidekarNamespaceHandler extends NamespaceHandlerSupport {

    public void init() {
        registerBeanDefinitionParser("schema", new SchemaBeanDefinitionParser());
    }
}

